<template>
  <div>
    <p class="text" v-html="html.content"></p>
  </div>
</template>

<script type="text/ecmascript-6">
  import {getAgreement} from '../../../test/unit/http'
  import {Toast} from 'we-vue'
  export default {
    name: 'service',
    props: {},
    data() {
      return {
        html:{}
      };
    },
    methods: {
      getAgreement(params){
        getAgreement(params).then(res => {
          console.log(res);
          if (res.code == 100) {
            this.html = res.object;
          } else {
            Toast.fail(res.info);
          }
        })
      }
    },
    created() {
      this.getAgreement({htmlKey: 'service'});
    },
    components: {}
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less" rel="stylesheet/less">
  .title {
    font-size: 20px;
    color: #111;
    font-weight: 700;
    padding: 10px;
  }

  .text {
    font-size: 15px;
    color: #666;
    line-height: 25px;
    text-indent: 30px;
    text-align: left;
    padding: 10px;
  }

  .offer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-image: linear-gradient(to right, #f9964e, #ff8551);
    height: 50px;
    line-height: 50px;
    color: #fff;
  }
</style>
